<?php
/**
 * Created by PhpStorm.
 * User: zhangjijian
 * Date: 2017/6/21
 * Time: 下午7:40
 */
namespace App\Providers;

use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;

class ComposerServiceProvider extends ServiceProvider
{
    public function boot(){
        View::composer(
            'profile','App\Http\ViewComposers\ProfileComposer'
        );
        View::composer('dashboard',function(){

        });
    }

    public function register(){
        //
    }
}